package com.mygdx.game.Stage.Fight;

import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.scenes.scene2d.Actor;
import com.badlogic.gdx.scenes.scene2d.ui.Image;
import com.badlogic.gdx.scenes.scene2d.ui.Label;

public class Energy extends Actor{
    //能量/费用
    public static int energy=3;
    public static final Integer MAX_ENERGY=3;
    private static Texture t0;
    private static Image image;


    public Energy() {
        super();
    }

    @Override
    public void draw(Batch batch,float p){
        switch(energy) {
            case 3:
                t0 = new Texture("Character/energy3.png");
                batch.draw(t0,1800,50);
                break;


           case 2:
               t0 = new Texture("Character/energy2.png");
               batch.draw(t0,1800,50);
               break;

            case 1:
                t0 = new Texture("Character/energy1.png");
                batch.draw(t0,1800,50);
                break;


            case 0:
                t0 = new Texture("Character/energy0.png");
                batch.draw(t0,1800,50);
                break;

        }
    }


}
